package cn.xxc.basic.util;

import lombok.Data;

@Data
public class AjaxResult {
    private Boolean success=true;
    private String msg;
    private Object resultObj;

    public AjaxResult(){}
    public AjaxResult(Boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }

    //驼峰改造
    public static AjaxResult me(){
        return new AjaxResult();
    }
    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return  this;
    }
    public AjaxResult setMessage(String msg) {
        this.msg = msg;
        return  this;
    }

    public AjaxResult setResultObj(Object resultObj) {
        this.resultObj = resultObj;
        return  this;
    }
}
